package pl.krzosekm.vehicleregister.dao;

import pl.krzosekm.vehicleregister.model.Vehicle;

public class VehicleDAOImpl extends BaseDAO implements VehicleDAO {

    public void save(Vehicle vehicle) 
    {
	getHibernateTemplate().save(vehicle);
    }

    public Vehicle getVehicleByVin(String vin) {
	Vehicle vehicle = (Vehicle)getHibernateTemplate().get(Vehicle.class, vin);
	return vehicle;
    }

}
